import type { loginParams, loginRes, userInfo } from '@/types/login'
import { request } from '@/utils/request'

export const loginAPI = (data: loginParams) => {
  return request<loginRes>('/v1_0/authorizations', 'POST', data)
}

export const getUserInfoAPI = () => {
  return request<userInfo>('/v1_0/user/profile', 'GET')
}
